package com.iretailer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT;

@TableName(value = "site")
public class Site {

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    //唯一
    private String siteName;
    //经度
    private String longitude;
    //纬度
    private String latitude;
    // -1 为不适用， 1为使用
    @TableField(fill = INSERT)
    private int siteStatus = 1;


    public Site() {
    }

    public Site(String siteName, String longitude, String latitude) {
        this.siteName = siteName;
        this.longitude = longitude;
        this.latitude = latitude;
    }

    public int getSiteStatus() {
        return siteStatus;
    }

    public void setSiteStatus(int siteStatus) {
        this.siteStatus = siteStatus;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }
}
